<h1>Nova reserva de data e horario</h1>

<% form_for(@reservadatahorario) do |f| %>
  <%= f.error_messages %>
	<%f.hidden_field :reserva_id,:value=>@reservae.id%>
	<h4>Data</h4>
    <%= f.date_select :data %>
    <h4>Inicio</h4>
    <%= f.time_select :inicio %>
	<h4>Fim</h4>
    <%= f.time_select :fim %>
    <%= f.submit 'Criar' %>
<% end %>

<a href='<%=reservas_path %>'><button type="button">Voltar</button></a>